from flask import Blueprint
from flask import render_template
from pyexpat.errors import messages

from model.studb import StuInfo

view02_bp = Blueprint("view02",__name__,url_prefix="/v1")

@view02_bp.route("/index") #/v1/index
def index():
    return "this is view02_bp index"

@view02_bp.route("/www/index")
def www_index():
    return render_template("index.html",message="this is test")

@view02_bp.route("/student/html")
def get_student_info():
    data = StuInfo.get_students()
    return render_template("student.html",content=data)

